//公用同一个分页
//todo 切换模块时要重置分页页码

export default {
  namespaced: true,
  state: {
    pageSizes: [10, 20, 30, 50],
    currentPage: 1,
    realCurrentPage: 1,
    total: 200
  },
  getters: {},
  mutations: {

    sizeChange(state, payload) {},
    currentChange(state, payload) {
      state.currentPage = payload;
    },
    refreshPagination(state, payload) {
      state.currentPage = payload;
    },
    renderPagination(state, payload) {
      state.currentPage = payload.currentPage;
      state.total = payload.total;
    }
  }
}
